home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
016a
/
safezip7.zip
/
SAFEZIP.DOC
< prev
next >
Wrap
Text File
|
1991-12-16
|
7KB
|
127 lines
S A F E Z I P
Version 7
by Brad Carlton
SafeZip is the quick and easy way to make sure that all subdirectories,
volume labels and read-only, hidden or system files get included when
using PKZIP and PKUNZIP. I don't know how many times I have had to ask
the question "Did you use PKUNZIP with the -d option?" when somebody
complains about some program not working which had subdirectories.
SafeZip will even allow you to zip your DOS boot disk. Teledisk is NOT
required for a DOS boot disk, PKZIP and PKUNZIP work just fine when you
know what parameters to use. SafeZip also does automatic virus scanning
at your option.
Version 7 of SafeZip is mostly a bug fix for version 6, which was a major
update. Version 6 added support for SHEZ, but failed to automatically
recreate volume labels on diskettes when used from SHEZ. Version 7 fixes
this problem. To fix this problem, it was necessary to make SafeZip
extract volume labels whenever the current drive is a floppy, which is
a damn good idea anyway. So, this fix is also an enhancement for those
who don't use SHEZ. At any rate, UNZ.EXE can now REALLY be used as a
PKUNZIP front-end in SHEZ so that it is no longer necessary to exit SHEZ
before running UNZ to unzip files with all the parameters required to
reproduce volume labels, subdirectories and files with hidden, read-only
or system attributes. Version 7 also fixes a problem when virus scanning
has been enabled with the SAFEZIP=SCAN environment variable, and UNZ was
being used from within SHEZ. The virus scan did not work under these
circumstances in version 6.
As promised, ZIP.COM has been replaced with ZIP.EXE, which is now
compiled with Turbo Pascal 6.0, as UNZ.EXE is. ZIP.EXE now also uses
the SAFEFLOP environment variable, which was introduced in version 6.
ZIP.EXE now automatically includes the volume label when the current
drive is a floppy, which is another enhancement over version 6.
ZIP.EXE is used to call PKZIP with all the magic parameters necessary to
create zips which preserve all the attributes of things such as DOS boot
disks. UNZ.EXE calls PKUNZIP to reproduce the files zipped with ZIP.EXE.
Command format: ZIP zipname[.ZIP] [d[:]][\subdir] [filenames]
Please note that only the drive letter being zipped from needs to be
specified. The colon (:) is optional, so either "A" or "A:" will work.
ZIP.EXE also assumes that ALL files will be added to the zip, so it is
not necessary to specify "A:*.*". Simply "A" will do. ZIP.EXE adds this
wildcard filespec (*.*) to any filespec in the second parameter which is
a single drive letter, a drive letter and a colon and any filespec ending
with a backslash (\). The *.* is necessary to ensure that PKZIP includes
all subdirectories.
Volume labels are only included when zipping from a floppy disk.
ZIP.EXE only knows that you are zipping from a floppy if the second
parameter begins with a floppy drive letter or the current drive is a
floppy. Only drives A and B as being floppies by default, but an
environment variable can be set to override this. IBM machines
sometimes have a floppy drive D, so ZIP.EXE handles this by looking for
the SAFEFLOP environment variable. If A and D are your floppy drives,
then add the following command to AUTOEXEC.BAT:
SET SAFEFLOP=AD
The parameters used are mostly the same as if you were using PKZIP and
PKUNZIP directly. SafeZip just adds the parameters that are too easily
forgotten but required to practice safe zipping. If the drive and
subdirectory are omitted, it defaults to the current directory. The
"filenames" parameter is an optional list of files to be included.
Command format: UNZ zipname[.ZIP] [d[:]][\subdir] [filenames]
Again, the drive letter being unzipped to can be specified without the
colon (:) for compatibility with previous versions of SafeZip. UNZ.EXE
is merely a front-end to PKUNZIP.EXE, and will pass all parameters to
PKUNZIP that were specified on the command line with the exception of
appending a colon to the second parameter if it is a single letter and
thus a valid drive specification. PKUNZIP itself does not require that
the path to be unzipped to be the second parameter, but UNZ does require
that it be the second parameter in order to work its magic. This "magic"
that UNZ does if the second parameter is determined to be a FLOPPY drive,
is add the -$ option to the PKUNZIP command line to ensure that any
volume labels, if present, are recreated on the floppy disk. Version 7
has added an exception to this rule, however. Now, if the current drive
is a floppy drive, the volume label WILL be extracted even if the drive
letter was not found in the second parameter. As mentioned above in
reference to ZIP.EXE, UNZ also assumes that only drives A and B are
floppies, but UNZ also reads the SAFEFLOP environment to override this.
The -$ option is not the only thing UNZ automatically adds to the PKUNZIP
command line. The -D and -JHSR options are also added to ensure that
subdirectories and files with hidden, system and read-only attributes are
recreated properly. These options are used on both hard and floppy
drives, unless it is determined that UNZ is being used to unzip temporary
files from within SHEZ. In this case, the command line is passed to
PKUNZIP without the -$, -D or -JHSR options. These options ARE used from
within SHEZ when appropriate for files being unzipped normally. This
support for SHEZ was the main reason UNZ was rewritten in Pascal for
version 6. To use UNZ from SHEZ, just configure SHEZ to call UNZ.EXE
rather than PKUNZIP.EXE.
UNZ also does automatic virus scanning with McAfee's SCAN.EXE. This
option is enabled by setting SAFEZIP=SCAN in AUTOEXEC.BAT. Again, UNZ
requires that the location of the unzipped files be specified as the
second parameter so that it can pass this information to SCAN. However,
if ONLY the zipname is specified, so that the files are unzipped to the
current directory, UNZ will tell SCAN to search the current directory by
using *.* as the filespec. In SafeZip version 7, UNZ now also recognizes
that it is running from SHEZ, and also uses the *.* filespec in this
case. UNZ uses the SCAN /SUB option to search subdirectories of the
directory unzipped into for viruses, so this will, of course, result in
your whole drive being scanned if you unzip into the root directory.
SCANV80 or above is required if SAFEZIP=SCAN is set because the /SUB
option was added in v80.
Well, thats about it. SafeZip is a free utility, and the latest version
is always a free download on Mother Lode. If you don't have an account
on Mother Lode, you should! If you would like the number and NUP for
Mother Lode, please leave a message to Brad Carlton on SpamLand, The
Realm of Immortality, 10 Downing, Paradise Springs or Wastelands III.
And last, but not least, thanks, Rick Klein for your help with TP6!